<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>es6</title>
	<script src="js/require.js" ></script>
	<script src="./require.config.js" ></script>
	<script>
		require(['vue','vuex','text!./views/a.html'],function(vue,vuex,atempLate){
			new vue({
				el: "#root",
				data() {
					return {
						aaa: 123,
						bbb: 123,
					}
				},
				components: {
					apage: {template : atempLate}
				},
				mounted() {
					this.testA();
				},
				methods: {
					testA() {
						console.log(this.aaa)
					}
				}
			})
		});
	</script>
</head>
<body>
	<div id="root">
		<apage></apage>
	</div>
</body>
</html>